package com.example.multidata.controller;

import com.example.multidata.mappers.mysql.MysqlMapper;
import com.example.multidata.mappers.sqlserver.SqlserverMapper;
import com.example.multidata.po.ReconciliationDetailsPO;
import com.example.multidata.po.RouterPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HomeController {

    @Autowired
    MysqlMapper mysqlMapper;
    @Autowired
    SqlserverMapper sqlserverMapper;

    @RequestMapping("/home")
    public void home() {
        List<RouterPO> aa = mysqlMapper.get();
        List<ReconciliationDetailsPO> bb = sqlserverMapper.get();

        System.out.println(aa);
        System.out.println(bb);

    }

}
